<?php
namespace Index\Controller; 
/**
* 
*/
class IndexController extends Controller 
{
	public function index()
	{
		
		$model = new MsgModel();
		
		$data = $model->getHot();
		
		$this->assign('data',$data);
		$this->assign('name',"学并思");
		$this->display();
	}

	public function del()
	{
		$model = new Model('msg');

		$res = $model->del($_GET['id']);

		if($res){
			header("Location:./index.php");
		}
	}

}